<cfcomponent accessors="true">	
    
    <cfproperty name="nclaveu"type="numeric">
    <cfproperty name="spasw">
	
	<cffunction name="buscar" returntype="boolean">
		<cfquery name="misql">
			SELECT t1.nclaveu
			FROM	usuario as t1
			WHERE	t1.nclaveu = #variables.nclaveu#
            AND 	spasw = '#variables.spasw#'
		 </cfquery>
		   <cfif misql.recordcount GT 0>
		 		  <cfset res = true>
		   <cfelse>
				  <cfset res = false>
		   </cfif>
		<cfreturn res>
	</cffunction>
    
    <cffunction name="tipo" returntype="boolean">
    	<cfquery name = "misql2">
			SELECT t1.nclaveu
			FROM	clientes as t1
			WHERE	t1.nclaveu = #variables.nclaveu#
        </cfquery>
        <cfif misql2.recordcount GT 0>
        	<cfset res= false>
         <cfelse>
           	<cfset res= true>
    	</cfif>
        <cfreturn res>
    </cffunction>
    

	
</cfcomponent>